
win32 {
    LIB_PATH = $${PWD}/lib/win
    CONFIG += warn_off
} else: android {
    LIB_PATH = $${PWD}/lib/android
    CONFIG(debug, debug|release) {
        ANDROID_EXTRA_LIBS += $${LIB_PATH}/*protobufd.so
    } else {
        ANDROID_EXTRA_LIBS += $${LIB_PATH}/*protobuf.so
    }
} else: unix {
    LIB_PATH = $${PWD}/lib/unix
} else {
    error("unsupported configuration!")
}

!exists($${LIB_PATH}/*protobuf*) { 
    error("please compiler lib first!")
}

CONFIG(debug, debug|release): LIBS += -L$${LIB_PATH} -lprotobufd
else: LIBS += -L$${LIB_PATH} -lprotobuf

INCLUDEPATH += $${PWD}/protobuf/src

